package L1;

import java.io.IOException;
import java.util.Scanner;

public class _080 {
    /**
     * 乘法口诀数列
     */
    public static void main(String[] args) throws IOException {
        Scanner scanner  = new Scanner(System.in);
        int a1= scanner.nextInt();
        int a2 = scanner.nextInt();
        int n = scanner.nextInt();
        int[] arr = new int[2*n];
        arr[0]=a1;
        arr[1] =a2;
        int j=2;
        for (int i=2;i<n;i++){
            int temp  = arr [i-1] *arr[i-2];
            if (temp>=10){
                int t1= temp/10;
                int t2 = temp%10;
                arr[j++] = t1;
                arr[j++] = t2;
            }else {
                arr[j++] = temp;
            }
        }
        for (int i=0;i<n;i++){
            if (i==n-1){
                System.out.print(arr[i]);
            }else{
                System.out.print(arr[i]+" ");
            }
        }
    }
}
